import request from '@/utils/request'

const baseUrl = 'http://localhost:9083'
const basic = '/basic/user'

export function login(data) {
  return request({
    baseURL: baseUrl,
    url: '/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    baseURL: baseUrl + basic,
    url: '/info',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
